#ifndef INDEXED_ARRAY_OVERFLOW_TEST
#define INDEXED_ARRAY_OVERFLOW_TEST

/* Indexed Array Overflow Test
*************************************************************************************
*
*	Test code for testing indexed array overflow
*
*************************************************************************************
*
*   Credits
*
*		Richard Rios
*		Aaron Solomon
*
*************************************************************************************
*/
	#include "IndexedArray.h"

	#include <iostream>

	using namespace std;
/*
*************************************************************************************/

struct IndexedArrayOverflowTest {
	static void execute() {
	/*
	*
	*   Description
	*   -----------------------
	*
	*       Attempts to input 4 values into an indexed array of size 3
	*
	*		Outputs error if an exception is thrown
	*
	*   Takes
	*   -----------------------
	*
	*       nothing
	*
	*   Returns
	*   -----------------------
	*
	*       nothing
	*
	*/
		IndexedArray<int, 3> indexedArray;

		indexedArray.insert(3);
		indexedArray.insert(12);
		indexedArray.insert(6);

		try {
			indexedArray.insert(4);
		}
		catch (int e) {
			cout << "ERROR: " << e << endl;
		}
	} //execute
}; //IndexedArrayOverflowTest

#endif